<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>创建数组</title>
</head>

<body>
    <script>
        var arr=['《三国演义》','《红楼梦》','《西游记》','《水浒传》'];
        console.log(arr);
        console.log(arr.length);
    </script>
</body>

</html>